
cmake_minimum_required(VERSION 3.5.1)



add_library( navi_task   navi_task.cc )
target_link_libraries( navi_task
cyber::log
common::status
planning::frame
planning::planning_gflags
planning::reference_line_info
planning::discretized_trajectory
planning::publishable_trajectory
planning::proto
)




add_library( navi_obstacle_decider   navi_obstacle_decider.cc )
target_link_libraries( navi_obstacle_decider
navi_task
cyber::log
common::vehicle_config_helper
common::math
common_path_matcher
common::status
map::proto
planning::frame
planning::planning_gflags
planning::reference_line_info
planning_proto
task

)


add_library( navi_path_decider   navi_path_decider.cc  )
target_link_libraries( navi_path_decider
navi_task
cyber::log
common::vehicle_config_helper
common::math
common::status
map::proto
planning::frame
planning::planning_gflags
planning::reference_line_info
navi_speed_decider
planning_proto
task
)


add_library( navi_speed_decider  navi_speed_decider.cc
navi_speed_ts_graph.cc )
target_link_libraries( navi_speed_decider
cyber::log
common::vehicle_config_helper
common::math
common::status
map::proto
planning::frame
planning::planning_gflags
planning::reference_line_info
navi_obstacle_decider
planning_proto
task
)



install(TARGETS navi_task
navi_path_decider
navi_speed_decider
navi_obstacle_decider
        EXPORT  apollo-export
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )